package day03;

import java.util.Scanner;

public class ifDemo1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int even = sc.nextInt();
        if(even%2==0){
            System.out.println("这个数是偶数:"+even);
        }else {
            System.out.println("这个数是奇数："+even);
        }
        System.out.print("满300打9折，满500打八折哦，输入您的消费金额：");
        int money = sc.nextInt();
        if (money>=500){
            System.out.println("您需要支付的金额为："+money*0.8);
        }else if (money>=300&&money<500){
            System.out.println("您需要支付的金额为："+money*0.9);
        }
    }
}
